<%@ page import="org.apache.shiro.subject.Subject" %>
<%@ page import="org.apache.shiro.SecurityUtils" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: yihr-pc
  Date: 2018/5/17
  Time: 16:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

Click <a href="<c:url value="/s/login"/>">here</a> to login.




<c:if test="${empty auser}">
    <%--<jsp:forward page="/s/login" />--%>
    <c:redirect url="/s/login" />

</c:if>

<c:if test="${not empty auser}">
    <%--<jsp:forward page="/s/index" />--%>
    <c:redirect url="/s/index" />
</c:if>

</body>
</html>
